package com.agent.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;
import java.time.LocalTime;

@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class CourseSchedule {
    private Long id;
    private Long userId;
    // 课程名称
    private String courseName;
    // 授课教师
    private String teacher;
    // 上课地点
    private String location;
    // 星期几（1-7）
    private Integer dayOfWeek;
    // 上课周数
    private String workWeek;
    // 开始时间与结束时间
    private LocalTime startTime;
    private LocalTime endTime;

    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createdAt;
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updatedAt;
}
